import * as types from '../../mutation-types/rights/index';

const state = {
	rights_get_list : [],
    currentPage :1,
    totalCount : 0,
    pageSize: 50,
    brandName:'',//品牌名称
    searchId:'',//品牌id
	cookie:'',//cookie
	lastStatus:'',//最近一次抓取结果
	gmtCreateBegin: '', //添加时间开始
    gmtCreateEnd: '',  //添加时间结束
    lastTimeBegin: '',//最近一次抓取时间开始
	lastTimeEnd: ''//最近一次抓取时间结束
};

const mutations = {
    [types.RIGHTS_GET_LIST] (state , {rights_get_list}){
		state.rights_get_list = rights_get_list;
	},
    [types.RIGHTS_CURRENTPAGE] (state , {currentPage}){
        state.currentPage = currentPage;
    },
    [types.RIGHTS_PAGESIZE] (state , {pageSize}){
        state.pageSize = pageSize;
    },
    [types.RIGHTS_TOTALCOUNT] (state , {totalCount}){
        state.totalCount = totalCount;
    },
    [types.RIGHTS_SEARCH_SEARCHID] (state , {searchId}){
        state.searchId = searchId;
    },
    [types.RIGHTS_SEARCH_BRANDNAME] (state , {brandName}){
        state.brandName = brandName;
    },
    [types.RIGHTS_SEARCH_LASTSTATUS] (state , {lastStatus}){
        state.lastStatus = lastStatus;
    },
    [types.RIGHTS_SEARCH_COOKIE] (state , {cookie}){
        state.cookie = cookie;
    },
    [types.RIGHTS_SEARCH_GMTCREATEBEGIN] (state , {gmtCreateBegin}){
        state.gmtCreateBegin = gmtCreateBegin;
    },
    [types.RIGHTS_SEARCH_GMTCREATEEND] (state , {gmtCreateEnd}){
        state.gmtCreateEnd = gmtCreateEnd;
    },
    [types.RIGHTS_SEARCH_LASTTIMEBEGIN] (state , {lastTimeBegin}){
        state.lastTimeBegin = lastTimeBegin;
    },
    [types.RIGHTS_SEARCH_LASTTIMEEND] (state , {lastTimeEnd}){
        state.lastTimeEnd = lastTimeEnd;
    },
};

export default {
	state ,
	mutations
};
